<?php 
namespace app\common\services;

use yii\helpers\Url;

class UrlService {

	public static function buildWebUrl($path,$params=[]){

		$domain_config = \Yii::$app->params['domain'];
		$path = Url::toRoute(array_merge([$path],$params));
		return $domain_config['web'].$path;
	}

}



?>